<?php

use Drupal\shusy_hotel\Entity\ShusyHotel;
use Drupal\shusy_hotel\Entity\ShusyHotelOrder;
use Drupal\shusy_hotel\Entity\ShusyHotelRoom;
use Drupal\shusy_hotel\Entity\ShusyHotelLine;
use Drupal\shusy_hotel\Entity\ShusyHotelLineRoom;

function shusy_hotel_shusy_hotel_add_page() {
  $e = new ShusyHotel();
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_entity_form', $e, 'add');
}

function shusy_hotel_shusy_hotel_view_page(ShusyHotel $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_hotel_shusy_hotel_edit_page(ShusyHotel $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_entity_form', $e, 'edit');
}

function shusy_hotel_shusy_hotel_delete_page(ShusyHotel $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_delete_form', $e);
}

function shusy_hotel_shusy_hotel_order_add_page() {
  $e = new ShusyHotelOrder();
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_order_entity_form', $e, 'add');
}

function shusy_hotel_shusy_hotel_order_view_page(ShusyHotelOrder $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_hotel_shusy_hotel_order_edit_page(ShusyHotelOrder $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_order_entity_form', $e, 'edit');
}

function shusy_hotel_shusy_hotel_order_delete_page(ShusyHotelOrder $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_order_delete_form', $e);
}

function shusy_hotel_shusy_hotel_room_add_page() {
  $e = new ShusyHotelRoom();
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_room_entity_form', $e, 'add');
}

function shusy_hotel_shusy_hotel_room_view_page(ShusyHotelRoom $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_hotel_shusy_hotel_room_edit_page(ShusyHotelRoom $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_room_entity_form', $e, 'edit');
}

function shusy_hotel_shusy_hotel_room_delete_page(ShusyHotelRoom $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_room_delete_form', $e);
}

function shusy_hotel_shusy_hotel_line_add_page() {
  $e = new ShusyHotelLine();
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_entity_form', $e, 'add');
}

function shusy_hotel_shusy_hotel_line_view_page(ShusyHotelLine $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_hotel_shusy_hotel_line_edit_page(ShusyHotelLine $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_entity_form', $e, 'edit');
}

function shusy_hotel_shusy_hotel_line_delete_page(ShusyHotelLine $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_delete_form', $e);
}

function shusy_hotel_shusy_hotel_line_room_add_page() {
  $e = new ShusyHotelLineRoom();
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_room_entity_form', $e, 'add');
}

function shusy_hotel_shusy_hotel_line_room_view_page(ShusyHotelLineRoom $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_hotel_shusy_hotel_line_room_edit_page(ShusyHotelLineRoom $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_room_entity_form', $e, 'edit');
}

function shusy_hotel_shusy_hotel_line_room_delete_page(ShusyHotelLineRoom $e) {
  module_load_include('inc', 'shusy_hotel', 'shusy_hotel.forms');
  return drupal_get_form('shusy_hotel_shusy_hotel_line_room_delete_form', $e);
}

